From b8b0933a6dbf6248eefb69a1db221dcef79850e7 Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 21 Apr 2004 13:11:59 +0000 Subject: [PATCH] Eliminate warning for stupid undocumented [AD]601 packets that the 60C's hock up. --- gpsbabel/Makefile | 4 ++-- gpsbabel/jeeps/gpsapp.c | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/gpsbabel/Makefile b/gpsbabel/Makefile index 49281616a..d64a33b4d 100644 --- a/gpsbabel/Makefile +++ b/gpsbabel/Makefile @@ -78,8 +78,8 @@ dep: (echo -n "internal_styles.c: mkstyle.sh " ; echo style/*.style ; /bin/echo -e '\t./mkstyle.sh > $@ || (rm -f $@ ; exit 1)' ) >> /tmp/dep echo Edit Makefile and bring in /tmp/dep -VERSIONU=1_2_3_beta04112004 -VERSIOND=1.2.3_beta04112004 +VERSIONU=1_2_3_beta04202004 +VERSIOND=1.2.3_beta04202004 #VERSIONU=1_2_2 #VERSIOND=1.2.2 diff --git a/gpsbabel/jeeps/gpsapp.c b/gpsbabel/jeeps/gpsapp.c index d4c2746ab..2b71196a0 100644 --- a/gpsbabel/jeeps/gpsapp.c +++ b/gpsbabel/jeeps/gpsapp.c @@ -348,10 +348,13 @@ static void GPS_A001(GPS_PPacket packet) } else if(data<700) { - if(data!=600) - GPS_Protocol_Error(tag,data); - else + if (data == 600) gps_date_time_transfer = pA600; + else { + /* Stupid undocumented 60C packets */ + /* GPS_Protocol_Error(tag,data); */ + continue; + } continue; } else if(data<800) @@ -511,10 +514,13 @@ static void GPS_A001(GPS_PPacket packet) else if(lasta<700) { - if(data!=600) - GPS_Protocol_Error(tag,data); - else + if (data == 600) { gps_date_time_type = pD600; + } else { + /* Stupid undocumented 60 D601 packets */ + /* GPS_Protocol_Error(tag,data); */ + continue; + } continue; } else if(lasta<800) -- 2.30.2